<template>
    <div id="app">
        <el-container style="height: 500px;">
            <!-- 头部文字 -->
            <el-container>
                <el-header style="text-align: left; font-size: 18px">
                    <span>大伟聊前端</span>
                </el-header>
                <br /><br />
                <router-view></router-view>
            </el-container>
        </el-container>
    </div>
</template>

<style>
html body {
  margin: 0;
  padding: 0;
}
/* 顶栏 */
.el-header {
    background-color: #165dff;
    color: #fff;
    text-align: center;
    line-height: 60px;
}

/* 底栏 */
.el-footer {
    background-color: #b3c0d1;
    color: #333;
    text-align: center;
    line-height: 60px;
}

/* 侧栏 */
.el-aside {
    background-color: #d3dce6;
    color: #333;
    text-align: center;
    line-height: 200px;
}

/* 主要区域 */
.el-main {
    background-color: #e9eef3;
    color: #333;
    text-align: center;
}

body > .el-container {
    margin-bottom: 40px;
}
</style>

<script>
export default {
    data() {
        const item = {};
        return {
            tableData: Array(20).fill(item),
        };
    },
};
</script>